package com.vogue.api.common.rsa.annotation;

import com.vogue.api.common.rsa.advice.EncryptRequestBodyAdvice;
import com.vogue.api.common.rsa.advice.EncryptResponseBodyAdvice;
import com.vogue.api.common.rsa.config.SecretKeyConfig;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * 加密开启注解
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
@Import({SecretKeyConfig.class,
        EncryptResponseBodyAdvice.class,
        EncryptRequestBodyAdvice.class})
public @interface EnableSecurity{

}
